package io.github.consoles;

import org.junit.Test;

/**
 * Created by yiihua-013 on 16/12/28.
 */
public class NaN {

    @Test
    public void test(){
//        System.out.println(1/0);
//        System.out.println(1/0.0);
        System.out.println(14 / -3);
        System.out.println(14 % -3);
        System.out.println(-14 / 3);
        System.out.println(-14 % 3);
//        assert false:"断言失败";
        assert true:"断言成功";

        String str1 = "hello";
        String str2 = str1;
        str1 = "world";
        assert str1.equals("world");
        assert "hello".equals(str2);
    }
}
